package com.lysj.admin.master.common.spring.mpbase;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.lysj.admin.master.common.CommonConstant;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * @author Created by zk on 2019-12-24 15:12
 * @description
 */
@Data
@MappedSuperclass
public class IdEntity implements Serializable {
    @Id
    private String id;
    private Integer delFlag = CommonConstant.NORMAL_FLAG;
    private String name;
    public boolean entityIsNormal(){
        return CommonConstant.NORMAL_FLAG.equals(this.delFlag);
    }
}
